package com.echovin.esb.gateway.constants;

import org.springframework.core.Ordered;

/**
 * gateway过滤器排序，数字越小约先执行
 *
 * @author dym
 */

public class OrderConstants {
    /**
     * ip limit
     */
    public static final int IP_LIMIT =  Ordered.HIGHEST_PRECEDENCE;
    /**
     * cache body
     */
    public static final int CACHE_BODY =  Ordered.HIGHEST_PRECEDENCE + 1;
    /**
     * authorize token
     */
    public static final int TOKEN_AUTHORIZE = -100;
    /**
     * wrapper response
     */
    public static final int WRAPPER_RESPONSE = -2;
    /**
     * check parameter
     */
    public static final int PARAMTER_CHECK =  -1;

    /**
     * service orchestration
     */
    public static final int SERVICE_ORCHESTRATION = 10102;


}
